USE [CTEM-DB-v1]
GO

/****** Object:  StoredProcedure [dbo].[Employee_GetSalaryById]    Script Date: 02/10/2012 11:23:45 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

-- =============================================
-- Author:		TIENDH
-- Create date: 06/06/2011
-- Description:	abc
-- =============================================
CREATE PROCEDURE [dbo].[Employee_GetSalaryById] 
	@Id		BIGINT
AS
BEGIN
	SELECT	S.*, E.Username, E.FullName
	FROM	EmployeeSalary S JOIN Employee E ON S.EmployeeID = E.EmployeeID
	WHERE	S.EmployeeSalaryID = @Id
END

GO

